
// MainFrm.h : interface of the CMainFrame class
//

#pragma once
#include "AddressBox.h"

class CMainFrame : public CFrameWndEx
{
	
protected: // create from serialization only
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// Attributes
public:

// Operations
public:

// Overrides
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CMFCReBar m_wndReBar;
	CMFCMenuBar m_wndMenuBar;
	CMFCToolBar m_wndToolBar;
	CMFCStatusBar m_wndStatusBar;
	CAddressBox m_wndAddress;

// Generated message map functions
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnViewCustomize();
	afx_msg LRESULT OnToolbarCreateNew(WPARAM wp, LPARAM lp);
	afx_msg void OnAddressEnter();

	DECLARE_MESSAGE_MAP()

public:
	void SetAddress(LPCTSTR lpszUrl);
	void SetWindowTitle(LPCTSTR lpszTitle);
	void SetStatusIndicator(LPCTSTR lpszStatus);
	void ShowToolBar(BOOL bShow);
	void ShowStatusBar(BOOL bShow);
	void ShowAddressBar(BOOL bShow);
	void SetFrameWidth(LONG nWidth);
	void SetFrameHeight(LONG nHeight);
	void SetFrameTop(LONG nTop);
	void SetFrameLeft(LONG nLeft);
};


